package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 player_dynamic_info
 *
 * @author ruoyi
 * @date 2021-08-18
 */
public class PlayerDynamicInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 动态内容 */
    @Excel(name = "动态内容")
    private String content;

    /** 点赞数 */
    @Excel(name = "点赞数")
    private Long likeNumber;

    /** 回复数 */
    @Excel(name = "回复数")
    private Long replyNumber;

    /** 发布人id */
    @Excel(name = "发布人id")
    private Long publishUserId;

    /** 发布人名称 */
    @Excel(name = "发布人名称")
    private String publishUserName;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishTime;

    /** 1:公开，2:仅好友可见，3:私密（自己可见）4:指定人不可见 */
    @Excel(name = "1:公开，2:仅好友可见，3:私密", readConverterExp = "自=己可见")
    private Long visibility;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setLikeNumber(Long likeNumber)
    {
        this.likeNumber = likeNumber;
    }

    public Long getLikeNumber()
    {
        return likeNumber;
    }
    public void setReplyNumber(Long replyNumber)
    {
        this.replyNumber = replyNumber;
    }

    public Long getReplyNumber()
    {
        return replyNumber;
    }
    public void setPublishUserId(Long publishUserId)
    {
        this.publishUserId = publishUserId;
    }

    public Long getPublishUserId()
    {
        return publishUserId;
    }
    public void setPublishUserName(String publishUserName)
    {
        this.publishUserName = publishUserName;
    }

    public String getPublishUserName()
    {
        return publishUserName;
    }
    public void setPublishTime(Date publishTime)
    {
        this.publishTime = publishTime;
    }

    public Date getPublishTime()
    {
        return publishTime;
    }
    public void setVisibility(Long visibility)
    {
        this.visibility = visibility;
    }

    public Long getVisibility()
    {
        return visibility;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("content", getContent())
                .append("likeNumber", getLikeNumber())
                .append("replyNumber", getReplyNumber())
                .append("publishUserId", getPublishUserId())
                .append("publishUserName", getPublishUserName())
                .append("publishTime", getPublishTime())
                .append("visibility", getVisibility())
                .toString();
    }
}